//
//  BKUILayerLogTool.h
//  BukaLiveUILibrary
//
//  Created by 曹飞 on 2018/6/15.
//  Copyright © 2018年 tv.buka. All rights reserved.
//

#import <Foundation/Foundation.h>


typedef NS_ENUM(NSInteger,BKLogType) {
    BKLogTypeHardware = 500, //硬件信息
    BKLogTypeAddFile = 584, //添加文档
    BKLogTypeAddImage = 586, //添加图片
    BKLogTypeAddVideo = 587, //打开视频文档别表中的
    BKLogTypeSysCost = 614, //系统开销 cpu 内存消耗等
    BKLogTypeNetworkStatus = 615, //物理网络连接断开
    BKLogTypePublishSuccess = 621, //发流成功信息
    BKLogTypeH5JSError = 624, //h5 js 错误
    BKLogTypeUserJoin = 625, //进入房间
    BKLogTypeUserOut = 626, //退出房间
    BKLogTypeUpdateUserNotFound = 629, //更新用户状态找不到用户
    BKLogTypeH5CallbackLog = 631, //文档回调日志
    BKLogTypeRPCTeacher4003 = 634, //老师发送的rpc 4003
    BKLogTypeRPCStudent4003 = 635, //学生接受到的rpc 4003
    BKLogTypeAddLastNums = 636, //学生接收到的序号不对，当学生接收到的序号不等于上次接收到的序号加1，说明丢消息了
    BKLogTypePing = 623, //ping
    BKLogTypeMediaStatus = 618, //媒体状态
    BKLogTypeMethodLog = 643, //普通业务方法调用
    BKLogTypeNetInfoLog = 646, //网络信息 {"netType":[0,1,2,3] <<wifi 10,yi "netData":[0,1,2,3] <<强度}
    BKLogTypeMediaSDKError = 650 //媒体sdk回调的错误信息 json，(level，msg，error_code,这个几个字段封装成json字符串) 当做正常日志实时上传，level=1
};



typedef NS_ENUM(NSInteger,BKSignoLogType) {
    BKSignoLogTypeGetServerList = 1000,//获取信令服务器列表 // 0
    BKSignoLogTypeLOGIN = 1001,//进入房间
    BKSignoLogTypeSeclectUser = 1002,//获取用户
    BKSignoLogTypeUpdateUser = 1003,//更新用户
    BKSignoLogTypeLogout = 1004,//退出登录
    BKSignoLogTypeChat = 1005,//聊天.....没有用到 // 0
    BKSignoLogTypeChatBroadcast = 1006,//聊天广播
    BKSignoLogTypeDianbo = 1007,//Rpc点播 
    BKSignoLogTypeDianboRoomOut = 1008,//房间外发送点播rpc.....没有用到
    BKSignoLogTypeBroadcast = 1009,//rpc广播
    BKSignoLogTypeDeleteSnapshot = 1010,//删除快照
    BKSignoLogTypeSendMediaStatus = 1011,//发送状态信息
    BKSignoLogTypeDeleteMediaStatus = 1012,//删除状态信息
    BKSignoLogTypeSubscription = 1013,//订阅session
    BKSignoLogTypeUpdateMediaStatus = 1014,//更新状态信息
    BKSignoLogTypeMediaId = 1015,//媒体id
    BKSignoLogTypeDisconnect = 1017,//信令断开
    BKSignoLogTypePkgDianbo = 1019,//pkg点播失败。。。。没用到
    BKSignoLogTypePkgBroadcast = 1020,//pkg广播失败
    BKSignoLogTypeReconnectFail = 1021,//信令断开重连后失败
};

typedef NS_ENUM(NSInteger,BKNetInfoType) {
    BKNetInfoTypeWifi = 10,
    BKNetInfoTypeNon = 14,
    BKNetInfoTypeNon4G = 15,
    BKNetInfoTypeCMCC4G = 1, //中国移动通信-----chinamobile CMCC
    BKNetInfoTypeCMCC3G = 4,
    BKNetInfoTypeCMCC2G = 7,
    BKNetInfoTypeCUCC4G = 2, //中国联通通讯-----chinaunicom CUCC
    BKNetInfoTypeCUCC3G = 5,
    BKNetInfoTypeCUCC2G = 8,
    BKNetInfoTypeCTCC4G = 3, //中国电信 ------CHINATELECOM CTCC
    BKNetInfoTypeCTCC3G = 6,
    BKNetInfoTypeCTCC2G = 9
};

@interface BKUILayerLogTool : NSObject

+(void)saveLog:(int)level code:(int)code log:(NSString *)log device:(NSString*)device userID:(NSString*)userid  userName:(NSString*)user_name roomID:(NSString*)room_id roomName:(NSString*)room_name;

@end
